**// Comparison of Sample Means for Z&H
clear
use "C:\Users\Samangi\Documents\Datasets\Chapter Three\Z&Hcompetition.dta"
set more off
gen double lnobs = ln(Samplesize)
**// unweighted
sum PCC SEPCC lnobs T sampleyear developed undeveloped mixed quadratic ///
endogeneity macro someAveraged dummies NPL Zscore profit_volat profitability  ///
capitalization DtoD other_stability Hstatistic Boone Concentration Lerner HHI ///
other_competition Logit OLS FE RE GMM SLS other_method regulation ownership ///
global citations firstpub  IFrecursive reviewed_journal    

**//weighted
sum PCC SEPCC lnobs T sampleyear developed undeveloped mixed quadratic ///
endogeneity macro someAveraged dummies NPL Zscore profit_volat profitability  ///
capitalization DtoD other_stability Hstatistic Boone Concentration Lerner HHI ///
other_competition Logit OLS FE RE GMM SLS other_method regulation ownership ///
global citations firstpub  IFrecursive reviewed_journal [aweight=investperst]

**// Comparison of Sample Means for Extension
clear
use "C:\Users\Samangi\Documents\Datasets\Chapter Four\Extra_papers.dta"
set more off
gen double lnobs = ln(Samplesize)

sum PCC SEPCC  dummies Hstatistic developed undeveloped Logit lnobs citations ///
firstpub quadratic Boone IFrecursive regulation OLS reviewed_journal ownership ///
Concentration FE endogeneity NPL Lerner global HHI macro Zscore RE T ///
DtoD sampleyear GMM someAveraged profit_volat profitability SLS capitalization ///
mixed Otherstability othercompetition Othermethod

sum PCC SEPCC  dummies Hstatistic developed undeveloped Logit lnobs citations ///
firstpub quadratic Boone IFrecursive regulation OLS reviewed_journal ownership ///
Concentration FE endogeneity NPL Lerner global HHI macro Zscore RE T ///
DtoD sampleyear GMM someAveraged profit_volat profitability SLS capitalization ///
mixed Otherstability othercompetition Othermethod [aweight=investperst]
